package com.jixiantubu.wode;

import com.example.jixiantubu.R;
import com.jixiantubu.util.MyApplication;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

public class Wo_shoucangActivity extends Activity {
	ImageView shezhifanhui;
	Intent intent;
	String username;
	TextView textview;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Window window = this.getWindow();
		window.requestFeature(window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_wo_shoucang);
		textview=(TextView) findViewById(R.id.wodehsoucang);
		intent = getIntent();
		username = intent.getStringExtra("username");
		Log.e("Wo_shoucangActivity------->", username);
		if (username.equals(MyApplication.username)) {
			textview.setText("我的收藏");		
		}else{
			textview.setText("他的收藏");			
		}
		shezhifanhui=(ImageView) findViewById(R.id.wo_shezhi);
	}
	public void fanhui(View v){
		finish();
	}

	public void rl1(View v){
		Intent intent=new Intent(Wo_shoucangActivity.this,ShoucangTieziActivity.class);
		intent.putExtra("username", username);
		Log.e("rl1v ---------1", username);		
		
		startActivity(intent);
	}
	public void rl2(View v){
		Intent intent2=new Intent(Wo_shoucangActivity.this,YoujishoucangActivity.class);
		intent2.putExtra("username", username);
		Log.e("rl1v ---------2", username);
		startActivity(intent2);
	}
	public void rl3(View v){
		Intent intent3=new Intent(Wo_shoucangActivity.this,KepushoucangActivity.class);
		
		intent3.putExtra("username", username);
		Log.e("rl1v ---------3", username);
		startActivity(intent3);
	}

}
